import axios from 'axios'

const instance = axios.create({
  baseURL: import.meta.env.VITE_APP_BASE_API,
  timeout: 500000,
});

// 添加返回拦截器，将 res.data 赋值给 res
instance.interceptors.response.use(function (res) {
  return res.data;
});

export default instance;